package com.ruoyi.competitionNEW.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 赛事对象 competition
 * 
 * @author ruoyi
 * @date 2023-12-21
 */
public class Competition extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 赛事id */
    private Long id;

    /** 赛事名称 */
    @Excel(name = "赛事名称")
    private String name;

    /** 赛事举办场地 */
    @Excel(name = "赛事举办场地")
    private String address;

    /** 赛事开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "赛事开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 赛事结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "赛事结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 赛事年龄组 */
    @Excel(name = "赛事年龄组")
    private String ageType;

    /** 赛事创建人id */
    @Excel(name = "赛事创建人id")
    private String userId;

    /** 赛事信息修改人 */
    @Excel(name = "赛事信息修改人")
    private String updateuserId;

    /** 赛事报名状态(默认:0,不可报名,1开放报名) */
    @Excel(name = "赛事报名状态(默认:0,不可报名,1开放报名)")
    private String status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }
    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }
    public void setAgeType(String ageType) 
    {
        this.ageType = ageType;
    }

    public String getAgeType() 
    {
        return ageType;
    }
    public void setUserId(String userId) 
    {
        this.userId = userId;
    }

    public String getUserId()
    {
        return userId;
    }
    public void setUpdateuserId(String updateuserId) 
    {
        this.updateuserId = updateuserId;
    }

    public String getUpdateuserId() 
    {
        return updateuserId;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("address", getAddress())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("ageType", getAgeType())
            .append("createTime", getCreateTime())
            .append("userId", getUserId())
            .append("remark", getRemark())
            .append("updateTime", getUpdateTime())
            .append("updateuserId", getUpdateuserId())
            .append("status", getStatus())
            .toString();
    }
}
